package com.cha.chaCommon.redis.enums;

/*
@Author  hkf
@date 2024/10/30
--轻舟已过万重山--
*/
public enum RedisKeyEnums {
    SIGN_KEY("sign:%s:%s",30*24*3600),
    // 验证码的发送次数 code:手机号
    CODE_KEY("code:%s",10*60),
    //设置存储积分规则的键
    SIGN_RULE_KEY("sign:rule:",30*24*3600),
    // 验证码的发送次数 code:num:手机号
    KEY_CODE_NUM("code:num:%s", 600),

    KEY_LIKE_NUM("like:num:%s",24*3600),

    KEY_LIKE_FlAG("like:%s",24*3600);



    private String key;
    private Integer timeout;

    public String getKey() {
        return key;
    }

    public Integer getTimeout() {
        return timeout;
    }

    RedisKeyEnums(String key, Integer timeout) {
        this.key = key;
        this.timeout = timeout;
    }
}
